package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.StatementItem;
import cn.wolfcode.car.business.query.StatementItemQuery;

import java.util.List;

public interface StatementItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StatementItem statementItem);

    StatementItem selectByPrimaryKey(Long id);

    List<StatementItem> selectAll();

    int updateByPrimaryKey(StatementItem statementItem);

    List<StatementItem> selectForList(StatementItemQuery qo);

    /**
     * 查询指定结算单下的消费明细
     * @param statementId
     * @return
     */
//    List<StatementItem> selectByStatementItemId(Long statementId);

    void deleteByStatementId(Long statementId);

    /**
     * 导出 查询StatementId
     * @param statementId
     * @return
     */
    List<StatementItem> queryStatementItemByStatementId(Long statementId);
}